import { Result, Button } from 'antd'
import { useNavigate } from 'react-router-dom'
function NotAuth () {
  const navigate = useNavigate()
  return (
    <Result
      status="403"
      title="403"
      subTitle="您无权访问该页面，请申请开通权限后再次尝试！"
      extra={<Button type="primary" onClick={() => navigate('/')}>返回首页</Button>}
    />
  )
}

export default NotAuth
